/**
 *  IMPORTANT: THESE METHODS ARE THE EQUIVALENT TO OVERRIDES.
 *  DO NOT CHANGE THE SIGNATURE WITHOUT REFLECTING IN THE CANVAS VIEW.
 */
 
/**
 *  Toggles the display elements in the results panel.
 *  @param {boolean} show - the toggle to show/hide. If true, show. Else, hide.
 */
function showHideResultElements( show ) {
   sidebar.toggle(show);
}

/* END OVERRIDES */

function plotResults( data ) {
  var bestPrice = data.ResultData.Data[0].Price;
  
  $.each(data.ResultData.Data, function(i) {
    var letter = String.fromCharCode('a'.charCodeAt(0)+i);
    var colour = this.Price > bestPrice ? 'red' : 'green';
    
    placeMarker( new google.maps.LatLng(this.Latitude, this.Longitude), this.SiteName, colour, letter );
  });
}